package com.ehome.poct.base.api.feign.device;

import com.ehome.poct.base.api.dto.device.QrCodeHisDetailDTO;
import com.ehome.poct.base.api.dto.device.TestDeviceQrcodePrintHisDTO;
import com.ehome.poct.base.api.vo.device.QrcodePrintHisDetPageVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;


/**
 * 打印记录详细控制器
 *
 * @author ehome
 * @Date 2022-07-14 15:54
 */
@FeignClient(value = "${service.poct-base:}${service.suffix.poct-base:}",contextId = "DeviceQrCodePrintClient",path = "/qrcodeprinthisdetail")
public interface DeviceQrCodePrintClient {
    @PostMapping("/addQrcodePrintHis")
    Boolean insert(@RequestBody @Validated TestDeviceQrcodePrintHisDTO dto);

    @PostMapping("/getlist")
    QrcodePrintHisDetPageVO getList(@RequestBody QrCodeHisDetailDTO req);
}
